//
//  PortInView.m
//  CocoaSynth
//
//  Created by Thomas Dupont on 19/02/10.
//  Copyright 2010 Apple Inc. All rights reserved.
//

#import "PortInView.h"


@implementation PortInView

- (id)initWithFrame:(NSRect)frameRect
{
	if (self = [super initWithFrame:frameRect]) {
		moduleImage = [NSImage imageNamed:@"portIn.png"];
	}
	return self;
}

- (void)drawRect:(NSRect)dirtyRect
{
	[[NSColor clearColor] set];
	[NSBezierPath fillRect:dirtyRect];
	[moduleImage drawAtPoint:NSMakePoint(0, 0) fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
}

@end
